<?php

namespace app\common\model;

use org\util\TreeUtil;
use think\Db;

class SeoModel extends BaseModel
{
    protected $name = 'seo'; //定义用户表
    //开启自动写入时间戳
    protected $autoWriteTimestamp = false;
    // 定义自动完成的属性
    protected $auto = []; //新增修改
    protected $insert = []; //插入
    protected $update = []; //修改

    protected function getchangefreqTextAttr($value, $data)
    {
        $arr = [
            'always' => '总是更新',
            'hourly' => '每小时',
            'daily' => '每天',
            'weekly' => '每周',
            'monthly' => '每月',
            'yearly' => '每年',
            'never'=>'从不更新'
        ];
        return $arr[$data['changefreq']];
    }

}